package com.nlp.visualization.service.impl.backend;

import com.nlp.visualization.dao.backend.IModelDao;
import com.nlp.visualization.pojo.db.TModel;
import com.nlp.visualization.service.backEnd.IModelsService;
import com.nlp.visualization.service.base.ServiceSupportImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author LXM
 * @Title: NLPVisualizationTools
 * @Description:
 * @date 2018/5/10下午9:36
 */
@Service
public class ModelsServiceImpl extends ServiceSupportImpl<TModel> implements IModelsService {

    @Autowired
    private IModelDao modelDao;

    /**
     * 统计各类文件的数量。
     *
     * @param modelType
     * @return
     */
    @Override
    public int count(String modelType) {
        return modelDao.count(modelType);
    }

    @Override
    public List findByType(String keyword) {
        return modelDao.findByType(keyword);
    }
}
